package controller;

import entity.DVD;
import service.impl.DVDServiceImpl;

public class DVDController {
	private DVDServiceImpl dsi = new DVDServiceImpl();
	
	public boolean save(DVD dvd) {
		return dsi.save(dvd);
	}

	public boolean delete(DVD dvd) {
		return dsi.delete(dvd);
	}

	public boolean update(DVD dvd) {
		return dsi.update(dvd);
	}

	public DVD selectByName(String name) {
		return dsi.selectByName(name);
	}

	public DVD[] selectByType(String type) {
		return dsi.selectByType(type);
	}

	public DVD[] selectNoRent() {
		return dsi.selectNoRent();
	}

	public DVD[] selectAll() {
		return dsi.selectAll();
	}

	public boolean rent(DVD dvd) {
		return dsi.rent(dvd);
	}

	public boolean back(DVD dvd) {
		return dsi.back(dvd);
	}

	public DVD[] sortByTimes() {
		return dsi.sortByTimes();
	}

}
